﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using D3DSS.DataContract;

namespace D3DSS.IDomain
{
    /// <summary>
    /// 账户领域接口
    /// </summary>
    public interface IAccount
    {
        /// <summary>
        /// 注册
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Response<RegisterResponse> Register(RegisterRequest request);

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Response<LoginResponse> Login(LoginRequest request);

        /// <summary>
        /// 处理授权
        /// </summary>
        /// <param name="authorization"></param>
        /// <returns></returns>
        Response<AuthorizationInfo> ProcessAuthorization(string authorization);
    }
}
